package com.gzs.learn.payment.inf;

import com.gzs.learn.inf.BaseResponseDto;
import com.gzs.learn.payment.inf.dto.UnifyPayment;
import com.gzs.learn.payment.inf.dto.UnifyPaymentResponse;
import com.gzs.learn.payment.inf.dto.UnifyRefund;
import com.gzs.learn.payment.inf.dto.UnifyRefundResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author guanzhisong
 * @date 2021/7/12
 */
@RequestMapping("payment")
public interface IPaymentClientSign {

    /**
     * 统一支付请求
     *
     * @param unifyPayment
     * @return
     */
    @PostMapping("unify-payment")
    BaseResponseDto<UnifyPaymentResponse> unifyPayment(@RequestBody  UnifyPayment unifyPayment);

    /**
     * 统一退款请求
     *
     * @param unifyRefund
     * @return
     */
    @PostMapping("unify-refund")
    BaseResponseDto<UnifyRefundResponse> unifyRefund(@RequestBody  UnifyRefund unifyRefund);
}
